package com.taowan.xunbaozl.morning_speak.design_pattern.pre;

/**
 * Created by 杨观回 on 2016/2/25 0025.
 * 适配器模式
 */
public class AdapterTest {

    public static void main(String[] args) {

        TwoPower twoPower = new TwoPhasePlugin();

        TwoThreeAdapter twoThreeAdapter = new TwoThreeAdapter(twoPower);

        ThreePowerStation threePowerStation = new ThreePowerStation(twoThreeAdapter);

        threePowerStation.supplyPower();
    }

}
